package cn.zn.modules.pz.cur.service.impl;

import cn.zn.modules.pz.cur.dao.TpExpenseMapper;
import cn.zn.modules.pz.cur.entity.TpExpense;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zn.modules.pz.cur.service.TpExpenseService;

@Service
public class TpExpenseServiceImpl extends ServiceImpl<TpExpenseMapper, TpExpense> implements TpExpenseService {

    @Override
    public TpExpense findByMainId(String mainId) {
        QueryWrapper<TpExpense> queryWrapper = Wrappers.query();
        queryWrapper.eq("TP_MAIN_ID_", mainId);
        return this.getOne(queryWrapper);
    }
}


